<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据字典修改</title>
<link href="${ctx }/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${ctx }/js/niceValidator/jquery.validator.css" />
<link href="${ctx }/js/layui/css/layui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="${ctx }/js/layer/layer.js"></script>
<script type="text/javascript" src="${ctx }/js/niceValidator/jquery.validator.js"></script>
<script type="text/javascript" src="${ctx }/js/niceValidator/local/zh_CN.js"></script>
<script type="text/javascript" src="${ctx }/js/common.js"></script>
</head>
<body>
<div class="listNavTitle">
    <p>
        <label>系统管理 ></label>
        <label>数据字典管理</label>
    </p>
</div>
<div class="formbody">
  <div class="formtitle"><span>修改数据字典</span></div>
<form id="submitForm">
  <input type="hidden" name="id" value="${systemDic.id}"/>
  <ul class="forminfo">
      <li>
      <label>数据字典类型</label>
      <select name="dicTypeId">
          <option value=>请选择</option>
          <#list systemDicTypeList as dicType>
              <option value="${dicType.id}" <#if systemDic.dicTypeId == dicType.id>selected="selected"</#if>>${dicType.name}(${dicType.typeCode})</option>
          </#list>
      </select>
      </li>
	 <li>
      <label>名称</label>
      <input name="name" value="${systemDic.name}" type="text" class="dfinput"  data-rule="名称:required;"/>
   	 </li>
	 <li>
      <label>值</label>
      <input name="dicValue" value="${systemDic.dicValue}" type="text" class="dfinput"  data-rule="值:required;"/>
   	 </li>
      <li>
          <label>排序</label>
          <input name="sortNo" type="text" class="dfinput"  data-rule="排序:digits;" value="${systemDic.sortNo}"/>
      </li>
	 <li>
      <label>备注</label>
      <input name="remarks" value="${systemDic.remarks}" type="text" class="dfinput"  data-rule="备注:required;"/>
   	 </li>
    <li>
      <label>&nbsp;</label>
      <button class="layui-btn layui-btn-normal" type="button" class="btn" id="submitBtn">确认保存</button>
    </li>
  </ul>
</form>
</div>
</body>
</html>
<script>
    $(document).ready(function(){
        $("#submitBtn").click(function(){
            baseEdit('${ctx }/sysman/systemDic/upChange.do');
        });
    });
</script>